/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;

using JDCloudSDK.Core.Annotation;

namespace JDCloudSDK.Renewal.Model
{

    /// <summary>
    ///  renewInstanceParam
    /// </summary>
    public class RenewInstanceParam
    {

        ///<summary>
        /// 业务线
        ///Required:true
        ///</summary>
        [Required]
        public string AppCode{ get; set; }
        ///<summary>
        /// 产品线
        ///Required:true
        ///</summary>
        [Required]
        public string ServiceCode{ get; set; }
        ///<summary>
        /// 续费时长(timeUnit&#x3D;MONTH时只能传1、2、3、4、5、6、7、8、9,timeUnit&#x3D;YEAR时只能传1、2、3)
        ///Required:true
        ///</summary>
        [Required]
        public int TimeSpan{ get; set; }
        ///<summary>
        /// 时间单位(MONTH-月,YEAR-年)
        ///Required:true
        ///</summary>
        [Required]
        public string TimeUnit{ get; set; }
        ///<summary>
        /// 待续费资源ID列表,英文逗号分隔
        ///Required:true
        ///</summary>
        [Required]
        public string InstanceIds{ get; set; }
        ///<summary>
        /// 是否统一到期日续费(YES-是,NO-否)，默认为NO
        ///</summary>
        public string UnifyDate{ get; set; }
        ///<summary>
        /// 是否自动支付，默认为true，外部用户调用时只能传true
        ///</summary>
        public bool AutoPay{ get; set; }
        ///<summary>
        /// 支付成功后的回调地址
        ///</summary>
        public string ReturnURL{ get; set; }
    }
}
